package beanstao.util.type.base;

import java.sql.Date;
import java.sql.Timestamp;

import beanstao.util.exception.technical.util.reflect.FailToCastObjectException;
import beanstao.util.type.Castor;

public class SqlDate2Timestamp extends Castor<Date, Timestamp>
{

	@Override
	public Timestamp cast(Date src, Class<?> toType, String... args) throws FailToCastObjectException
	{
		return new Timestamp(src.getTime());
	}

}
